#ifndef MODULE_H
#define MODULE_H

class Texture;
class Rect;
class Vector;

class Module
{
private:
	Rect* rSrc;
	Texture* texture;
	Vector* posInRect;

public:
	Module(int x, int y, int width, int height, Texture* texture);
	Module(int x, int y, int width, int height, Texture* texture, int xInSprite, int yInSprite);

	void Render(int x, int y, float deep);
	void Render(int x, int y, float alpha, float deep);
	void Render(int x, int y, float xScale, float yScale, float angle, float alpha,float deep);

	~Module();

	Vector* GetPosInRect(){return posInRect;}
};
#endif